import request from '@/utils/request'

// 查询安全事件列表
export function listSecurityincidents(query) {
  return request({
    url: '/business/securityincidents/list',
    method: 'get',
    params: query
  })
}

// 查询安全事件详细
export function getSecurityincidents(id) {
  return request({
    url: '/business/securityincidents/' + id,
    method: 'get'
  })
}

// 新增安全事件
export function addSecurityincidents(data) {
  return request({
    url: '/business/securityincidents',
    method: 'post',
    data: data
  })
}

// 修改安全事件
export function updateSecurityincidents(data) {
  return request({
    url: '/business/securityincidents',
    method: 'put',
    data: data
  })
}

// 删除安全事件
export function delSecurityincidents(id) {
  return request({
    url: '/business/securityincidents/' + id,
    method: 'delete'
  })
}
